package com._21cn.cms.yellow.web.validator;

import com._21cn.cms.yellow.entity.YellowPagePicture;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("yellowPagePictureValidator")
public class YellowPagePictureValidator
        implements Validator
{
    public boolean supports(Class<?> clazz)
    {
        return YellowPagePicture.class.equals(clazz);
    }

    public void validate(Object target, Errors errors) {
        YellowPagePicture obj = (YellowPagePicture)target;
    }
}